﻿//Write a program that reads an integer number n from the console and prints all the numbers in the interval [1..n], each on a single line.

using System;

class PrintAllNumberInInterval
{
    static void Main()
    {
        Console.Write("Enter number count: ");
        string numberCountString = Console.ReadLine();
        int numberCount;
        if (int.TryParse(numberCountString, out numberCount))
        {
            for (int number = 1; number <= numberCount; number++)
            {
                Console.WriteLine(number);
            }
        }
        else
            Console.WriteLine("Not a valid number.");
    }
}